﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Xyz.Web.Reservation.Models
{
    public class FlightModel
    {
        public int FlightId { get; set; }

        [DisplayName("Departure Airport : ")]
        public string DepartureAirport { get; set; }

        [DisplayName("Arrival Airport : ")]
        public string ArrivalAirport { get; set; }

        [DisplayName("Departure Date : * ")]
        [Required(ErrorMessage = "Departure Date is required")]
        public DateTime DepartureDateTime { get; set; }

        [DisplayName("Arrival Date : * ")]
        [Required(ErrorMessage="Arrival Date is required")]
        public DateTime ArrivalDateTime { get; set; }

        [DisplayName("Departure Terminal : ")]
        public string DepartureTerminal { get; set; }

        [DisplayName("Arrival Terminal : ")]
        public string ArrivalTerminal { get; set; }

        [DisplayName("Distance : ")]
        public string Distance { get; set; }

        [DisplayName("Tax Surcharge : ")]
        public decimal? TaxSurcharge { get; set; }

        [DisplayName("Flight Status : ")]
        public string FlightStatus { get; set; }

        public int AircraftId { get; set; }

        [DisplayName("Flight Number : * ")]
        [Required(ErrorMessage="Flight Number is required")]
        public string FlightCode { get; set; }
    }
}